<%@ page language="java" contentType="text/html; charset=EUC-KR"
	pageEncoding="EUC-KR"%>
<jsp:useBean id="player" class="pe.lucene.web.myrating.Player" scope="session"/>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="org.hibernate.Query"%>
<%@page import="org.hibernate.Transaction"%>
<%@page import="org.hibernate.Session"%>
<%@page import="java.util.Iterator"%>
<%@page import="pe.lucene.web.myrating.Player"%>
<%@page import="pe.lucene.web.myrating.HibernateUtil"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<link rel="stylesheet" type="text/css" href="../index.css" />
<link rel="stylesheet" type="text/css" href="../table.css" />
<link rel="stylesheet" type="text/css" href="../input.css" />
<title>Update</title>
</head>
<body>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <!-- title -->
    <tr background="../image/back_titlebar.png" height="30">
        <td >MyRating</td>
        <td align="right">ver 0.1</td>
    </tr>
    <!-- Decoration empty bar -->
    <tr>
        <td colspan="2" height="2" bgcolor="#959aa0"></td>
    </tr>

    <tr>
        <td colspan="2" align="center">
        
        <!--  center -->
        <table><tr><td>
        
<%
Session hbSession = null;

try {
	hbSession = HibernateUtil.currentSession();
	
	if (player != null) {
	
	   	%>
		<form action="update_ok.jsp" method="POST" enctype="multipart/form-data">
		ID <input type="text" name="id" disabled="disabled" value="<%=player.getId() %>"></input>
		<input type="hidden" name="id" value="<%=player.getId() %>"></input><br>
		Picture <input type="file" name="mypix"></input><br>
		PASSWORD <input type="password" name="passwd" value="<%=player.getPasswd()%>"></input><br>
		Num<input
		    type="text" name="backnum" value="<%=player.getBacknum()%>"></input><br>
	   Position <select name="position">
		    <option value="0">FW</option>
		</select><br>
		Club <input type="text" name="team" value="<%=player.getTeam() %>"></input><br>
		<input type="submit"></input>
		</form>    	
	   	<%
	    out.println("Player passwd:" + player.getPasswd() + ",team:" + player.getTeam());
	}
    
} catch (Exception ex) {
	out.println("exception/" + ex.getMessage());
} finally {
	HibernateUtil.closeSession();
}
%>
        </td></tr></table>
        <!-- /center -->
        </td>
    </tr>
</table>



</body>
</html>